<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>西瓜后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/carInquire.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <form class="layui-form" id="carInquire_form" wid100>
            <div class="layui-card-body car_source_table">
                <h3>车辆基础信息</h3>
                <a href="javascript:;" class="layui-btn layui-bg-blue layui-btn-sm" id="enter_purchased_vehicles">录入采购车辆</a>
                <div id="car_table">

                </div>
            </div>
            <div class="layui-card-body">
                <h3>金融方案</h3>
                    <div class="layui-form-item">
                        <label class="layui-form-label">授信额度剩余</label>
                        <div class="layui-input-inline">
                            <input class="layui-input layui-border-none" type="text" value="300000" readonly>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付方式<span class="layui-text-red">*</span> </label>
                        <div class="layui-input-inline">
                            <input type="radio" name="payStyle" value="0" lay-filter="payment" disabled title="融资">
                            <input type="radio" name="payStyle" value="1" lay-filter="payment" disabled title="全款">
                        </div>
                    </div>
                    <div class="financing layui-hide">
                        <div class="layui-form-item">
                            <label class="layui-form-label">融资产品<span class="layui-text-red">*</span> </label>
                            <div class="layui-input-inline">
                                <select class="layui-select">
                                    <option>请选择产品</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">融资比例<span class="layui-text-red">*</span> </label>
                            <div class="layui-input-inline">
                                <select class="layui-select">
                                    <option>请选择比例</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">期限<span class="layui-text-red">*</span> </label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" value="5~90">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">服务日费率</label>
                            <div class="layui-input-inline">
                                <input class="layui-input layui-border-none" type="text" value="0%" readonly>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">服务费(元)</label>
                            <div class="layui-input-inline">
                                <input class="layui-input layui-border-none" type="text" value="0" readonly>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">日利率</label>
                            <div class="layui-input-inline">
                                <input class="layui-input layui-border-none" type="text" value="0.04%" readonly>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">首付(元)</label>
                            <div class="layui-input-inline">
                                <input class="layui-input layui-border-none" type="text" value="598900" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="fullPayment layui-hide">
                        <div class="layui-form-item">
                            <label class="layui-form-label">本次待支付(元)</label>
                            <div class="layui-input-inline">
                                <input class="layui-input layui-border-none" type="text" value="598900" readonly>
                            </div>
                        </div>
                    </div>
            </div>
            <div class="layui-card-body">
                <h3>接车人信息</h3>
                    <div class="layui-form-item">
                        <label class="layui-form-label">姓名<span class="layui-text-red">*</span> </label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系电话<span class="layui-text-red">*</span> </label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份证号<span class="layui-text-red">*</span> </label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" placeholder="请输入">
                        </div>
                    </div>
            </div>
            <div class="layui-card-body">
                <h3>配送方式</h3>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="checkbox" class="layui-input" title="送车上门">
                        <input type="checkbox" class="layui-input" title="大库自提">
                        <input type="checkbox" class="layui-input" title="物流基地自提">
                        <input type="checkbox" class="layui-input" title="高速服务区自提">
                    </div>
                </div>
            </div>
        </form>
        <div class="layui-layer-btn my_skin"><a class="layui-layer-btn0">下订</a><a class="layui-layer-btn2">取消</a></div>
    </div>
</div>
<script src="../../../layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index', //主入口模块
        carInquire: 'car_inquire/carInquire',
    }).use(['index','carInquire','form','jquery'],function () {
        var form = layui.form
            ,$ = layui.jquery;
        //根据支付方式选择金融产品
        form.on('radio(payment)', function (data) {
            if(data.elem.title == "融资"){
                $(".financing").removeClass("layui-hide")
                $(".fullPayment").addClass("layui-hide")
            }
            if(data.elem.title == "全款"){
                $(".financing").addClass("layui-hide")
                $(".fullPayment").removeClass("layui-hide")
            }
        });
    });
</script>
</body>
</html>